package com.weimall.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class BmCzlxExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BmCzlxExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBmIsNull() {
            addCriterion("BM is null");
            return (Criteria) this;
        }

        public Criteria andBmIsNotNull() {
            addCriterion("BM is not null");
            return (Criteria) this;
        }

        public Criteria andBmEqualTo(String value) {
            addCriterion("BM =", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotEqualTo(String value) {
            addCriterion("BM <>", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmGreaterThan(String value) {
            addCriterion("BM >", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmGreaterThanOrEqualTo(String value) {
            addCriterion("BM >=", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmLessThan(String value) {
            addCriterion("BM <", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmLessThanOrEqualTo(String value) {
            addCriterion("BM <=", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmLike(String value) {
            addCriterion("BM like", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotLike(String value) {
            addCriterion("BM not like", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmIn(List<String> values) {
            addCriterion("BM in", values, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotIn(List<String> values) {
            addCriterion("BM not in", values, "bm");
            return (Criteria) this;
        }

        public Criteria andBmBetween(String value1, String value2) {
            addCriterion("BM between", value1, value2, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotBetween(String value1, String value2) {
            addCriterion("BM not between", value1, value2, "bm");
            return (Criteria) this;
        }

        public Criteria andMcIsNull() {
            addCriterion("MC is null");
            return (Criteria) this;
        }

        public Criteria andMcIsNotNull() {
            addCriterion("MC is not null");
            return (Criteria) this;
        }

        public Criteria andMcEqualTo(String value) {
            addCriterion("MC =", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotEqualTo(String value) {
            addCriterion("MC <>", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcGreaterThan(String value) {
            addCriterion("MC >", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcGreaterThanOrEqualTo(String value) {
            addCriterion("MC >=", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcLessThan(String value) {
            addCriterion("MC <", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcLessThanOrEqualTo(String value) {
            addCriterion("MC <=", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcLike(String value) {
            addCriterion("MC like", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotLike(String value) {
            addCriterion("MC not like", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcIn(List<String> values) {
            addCriterion("MC in", values, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotIn(List<String> values) {
            addCriterion("MC not in", values, "mc");
            return (Criteria) this;
        }

        public Criteria andMcBetween(String value1, String value2) {
            addCriterion("MC between", value1, value2, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotBetween(String value1, String value2) {
            addCriterion("MC not between", value1, value2, "mc");
            return (Criteria) this;
        }

        public Criteria andCzjeIsNull() {
            addCriterion("CZJE is null");
            return (Criteria) this;
        }

        public Criteria andCzjeIsNotNull() {
            addCriterion("CZJE is not null");
            return (Criteria) this;
        }

        public Criteria andCzjeEqualTo(BigDecimal value) {
            addCriterion("CZJE =", value, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeNotEqualTo(BigDecimal value) {
            addCriterion("CZJE <>", value, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeGreaterThan(BigDecimal value) {
            addCriterion("CZJE >", value, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("CZJE >=", value, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeLessThan(BigDecimal value) {
            addCriterion("CZJE <", value, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("CZJE <=", value, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeIn(List<BigDecimal> values) {
            addCriterion("CZJE in", values, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeNotIn(List<BigDecimal> values) {
            addCriterion("CZJE not in", values, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("CZJE between", value1, value2, "czje");
            return (Criteria) this;
        }

        public Criteria andCzjeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("CZJE not between", value1, value2, "czje");
            return (Criteria) this;
        }

        public Criteria andZsjeIsNull() {
            addCriterion("ZSJE is null");
            return (Criteria) this;
        }

        public Criteria andZsjeIsNotNull() {
            addCriterion("ZSJE is not null");
            return (Criteria) this;
        }

        public Criteria andZsjeEqualTo(BigDecimal value) {
            addCriterion("ZSJE =", value, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeNotEqualTo(BigDecimal value) {
            addCriterion("ZSJE <>", value, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeGreaterThan(BigDecimal value) {
            addCriterion("ZSJE >", value, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ZSJE >=", value, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeLessThan(BigDecimal value) {
            addCriterion("ZSJE <", value, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ZSJE <=", value, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeIn(List<BigDecimal> values) {
            addCriterion("ZSJE in", values, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeNotIn(List<BigDecimal> values) {
            addCriterion("ZSJE not in", values, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ZSJE between", value1, value2, "zsje");
            return (Criteria) this;
        }

        public Criteria andZsjeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ZSJE not between", value1, value2, "zsje");
            return (Criteria) this;
        }

        public Criteria andQyFlagIsNull() {
            addCriterion("QY_FLAG is null");
            return (Criteria) this;
        }

        public Criteria andQyFlagIsNotNull() {
            addCriterion("QY_FLAG is not null");
            return (Criteria) this;
        }

        public Criteria andQyFlagEqualTo(String value) {
            addCriterion("QY_FLAG =", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotEqualTo(String value) {
            addCriterion("QY_FLAG <>", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagGreaterThan(String value) {
            addCriterion("QY_FLAG >", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagGreaterThanOrEqualTo(String value) {
            addCriterion("QY_FLAG >=", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagLessThan(String value) {
            addCriterion("QY_FLAG <", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagLessThanOrEqualTo(String value) {
            addCriterion("QY_FLAG <=", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagLike(String value) {
            addCriterion("QY_FLAG like", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotLike(String value) {
            addCriterion("QY_FLAG not like", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagIn(List<String> values) {
            addCriterion("QY_FLAG in", values, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotIn(List<String> values) {
            addCriterion("QY_FLAG not in", values, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagBetween(String value1, String value2) {
            addCriterion("QY_FLAG between", value1, value2, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotBetween(String value1, String value2) {
            addCriterion("QY_FLAG not between", value1, value2, "qyFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}